all:
	g++ -o master Master.cpp MasterObs.cpp MasterEtu.cpp MasterAst.cpp Master_main.cpp -Ilibnet -Llibnet -lnet -lpthread
	g++ -o obs Obs_main.cpp Obs.cpp Agent.cpp -Ilibnet -Llibnet -lnet -lpthread
	g++ -o etu Etu_main.cpp Etu.cpp Agent.cpp -Ilibnet -Llibnet -lnet -lpthread
	g++ -o ast Ast_main.cpp Ast.cpp Agent.cpp -Ilibnet -Llibnet -lnet -lpthread

lib:
	cd libnet && make

clean:
	rm -f obs ast etu master
	rm -f *~
	rm -f *.o

cleanlib:
	cd libnet && make clean
